<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 基本表单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="/static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/static/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/static/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/static/css/animate.css" rel="stylesheet">
    <link href="/static/css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>修改个人资料</h5>
                    </div>
                    <div class="ibox-content">
                        <form class="form-horizontal"  method="post">
                            {% for msg in get_flashed_messages()%}
                                        <p class="login-box-msg">{{msg}}</p>
                            {% endfor %}
                            {{form.csrf_token}}
                            <div class="form-group">
                                <label class="col-sm-2 control-label">邮箱</label>
                                <div class="col-sm-10">
                                    {{form.email}}
                                        {% for msg in form.email.errors %}
                                        <span class="help-block m-b-none">{{msg}}</span>
                                        {% endfor %}
                                </div>
                                <!--{{form.email.label}}:-->

                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">用户名</label>
                                <div class="col-sm-10">
                                    {{form.username}}
                                        {% for msg in form.username.errors %}
                                        <span class="help-block m-b-none">{{msg}}</span>
                                        {% endfor %}
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">生日</label>
                                <div class="col-sm-10">
                                    {{form.birthday}}
                                        {% for msg in form.birthday.errors %}
                                        <span class="help-block m-b-none">{{msg}}</span>
                                        {% endfor %}
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">性别</label>
                                <div class="col-sm-10">
                                   <div class="radio i-checks">
                                    {{form.sex}}
                                    {% for msg in form.sex.errors %}
                                    <span class="help-block m-b-none">{{msg}}</span>
                                    {% endfor %}
                                   </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    {{form.submit}}
                                    <button type="button" class="btn btn-white" onclick="window.location.href = '/auth/info'">取消</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <!-- 全局js -->
    <script src="/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/js/bootstrap.min.js?v=3.3.6"></script>

    <!-- 自定义js -->
    <script src="/static/js/content.js?v=1.0.0"></script>

    <!-- iCheck -->
    <script src="/static/js/plugins/iCheck/icheck.min.js"></script>
        <!-- layerDate plugin javascript -->
    <script src="/static/js/plugins/layer/laydate/laydate.js"></script>
    <script>
        $(document).ready(function () {
            //外部js调用
            laydate({
                elem: '#hello', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
                event: 'focus' //响应事件。如果没有传入event，则按照默认的click
            });
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
    </script>

    
    

</body>

</html>
